from django.db import models
from lapi_app.models.user_model.user_info import Userinfo


class Point_pid(models.Model):
    from_name = models.CharField("打点来源", max_length=255, null=False)
    create_time = models.DateTimeField("创建时间", auto_now_add=True)
    update_time = models.DateTimeField("更新时间", auto_now_add=True)
    user = models.ForeignKey(Userinfo, on_delete=models.CASCADE)

    def __str__(self):
        return self.from_name
